package cn.lj.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @file:
 * @version:
 * @Description: 代码目的，作用，如何工作
 * @author: 李津
 * @date: 2021-04-14 16:19
 * 本代码要注意的事项、备注事项等
 */
@ApiModel("User登录对象")
public class LoginVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "登录id")
    private Integer id;


    @ApiModelProperty(value = "登录token")
    private String token;


    @ApiModelProperty(value = "登录用户")
    private User user;

    public LoginVo() {
    }

    public LoginVo(Integer id, String token, User user) {
        this.id = id;
        this.token = token;
        this.user = user;
    }


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
